package com.bey.keepgoing.repository;

import org.springframework.beans.factory.annotation.Autowired;

import com.bey.keepgoing.model.User;
import com.bey.keepgoing.repository.dao.AccountDao;

public class AccountRepository {

	private AccountDao accountDao;

	public User findUserByUsername(String loginName) {
		return accountDao.findUserByUsername(loginName);
	}

	public User findUserByLoginName(String loginName) {
		return new User();
	}

	@Autowired
	public void setAccountDao(AccountDao accountDao) {
		this.accountDao = accountDao;
	}

}
